<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>

export default {
  name: 'app',
  watch:{
    $route(to,from){
      console.log(to);
      if (to.path != '/login'){
        let obj={
          name:to.meta.title,
          title:to.name
        }
        this.$store.commit("addTab",obj);
      }
    }
  }
}
</script>

<style >
#app{
  margin: 0;
  padding: 0;
  border: 0;
  height: 100%;
}
.router-link-active {
  text-decoration: none;
}
a {
   text-decoration: none;
 }
</style>